import request from '@/utils/request'

// 查询住户分类列表
export function listHouseholdClassify(data) {
  return request({
    url: '/householdClassify/listHouseholdClassify',
    method: 'post',
      data: data
  })
}

// 查询住户分类详细
export function getHouseholdClassify(id) {
  return request({
    url: '/householdClassify/getHouseholdClassifyById?id=' + id,
    method: 'get'
  })
}

// 新增住户分类
export function addHouseholdClassify(data) {
  return request({
    url: '/householdClassify/addHouseholdClassify',
    method: 'post',
    data: data
  })
}

// 修改住户分类
export function updateHouseholdClassify(data) {
  return request({
    url: '/householdClassify/editHouseholdClassify',
    method: 'post',
    data: data
  })
}

// 删除住户分类
export function delHouseholdClassify(id) {
  return request({
    url: '/householdClassify/delHouseholdClassify?ids=' + id,
    method: 'delete'
  })
}
